{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "ead2fe68",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "1447bfad",
   "metadata": {},
   "outputs": [],
   "source": [
    "class Tool(object):"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "197754f5",
   "metadata": {},
   "outputs": [],
   "source": [
    "vuale_test = [[30,0,0,1,10], [0,30,0,1,10],[0,0,30,1,10]]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "83831da6",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[30, 0, 0, 1, 10]\n",
      "[0, 30, 0, 1, 10]\n",
      "[0, 0, 30, 1, 10]\n"
     ]
    }
   ],
   "source": [
    "for i in vuale_test:\n",
    "    print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "795ee364",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[30, 0, 0, 1, 10, 0, 30, 0, 1, 10, 0, 0, 30, 1, 10]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a = []\n",
    "for i in vuale_test:\n",
    "#     print(i)\n",
    "    for y in range(len(i)):\n",
    "        a.append(i[y])\n",
    "a      \n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "e9689190",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[30, 0, 0, 0, 30, 0, 0, 0, 30]"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "39d18861",
   "metadata": {
    "scrolled": false
   },
   "outputs": [],
   "source": [
    "aa = [[30, 0, 0, 1, 10],\n",
    "      [0, 30, 0, 1, 10],\n",
    "      [0, 0, 30, 1, 10]]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "a94c40a8",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "30\n",
      "0\n",
      "0\n"
     ]
    }
   ],
   "source": [
    "for i in aa:\n",
    "    print(i[0])\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "5039ff00",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0\n",
      "30\n",
      "0\n"
     ]
    }
   ],
   "source": [
    "for i in aa:\n",
    "    print(i[1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "2a8a5b2b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0\n",
      "0\n",
      "30\n"
     ]
    }
   ],
   "source": [
    "for i in aa:\n",
    "    print(i[2])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "2eff199d",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[30, 0, 0, 1, 10, 0, 30, 0, 1, 10, 0, 0, 30, 1, 10]\n"
     ]
    }
   ],
   "source": [
    "v = []\n",
    "for i in aa:\n",
    "    vv =[]\n",
    "    for y in range(len(i)):\n",
    "        vv.append(i[y])\n",
    "    \n",
    "print(v)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "0bbb712b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[[30, 0, 0], [0, 30, 0], [0, 0, 30], [1, 1, 1], [10, 10, 10]]"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a = []\n",
    "for i in range(5):\n",
    "    cc = []\n",
    "    for y in aa:\n",
    "        cc.append(y[i])\n",
    "    a.append(cc)\n",
    "a"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0311661f",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
